/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 邓大帅
 * Date: 2022-11-10
 * Time: 16:45
 */
public class LeapYear {
    public static void main(String[] args) {
        for (int i = 1000; i <= 2000; i++) {
            if (i%400 == 0 || (i%100 != 0 && i%4 == 0)) {
                System.out.println(i);
            }
        }
    }
}
